package cn.javass.dp.chianofresponsibility.mydemo3;

public class DepartmentHead extends LeaderHandle  {
    @Override
    public void handleRequest(int leaveDays) {
        if (leaveDays >2 && leaveDays <= 7) {
            System.out.println("系主任批准");
        } else {
            if (successor != null) {
                successor.handleRequest(leaveDays);
            }
        }
    }
}
